Conditions Library
- Layout
- Toolbar
- Filter Bar
- Conditions
The Conditions Library sub-tab manages the reusable condition sets that actions can reference. Each condition set contains one or more conditions that define when an action fires.
Filter Bar
Below the toolbar, a filter bar lets you narrow the displayed condition sets:
- Search — searches across set names, object IDs, and property names
- Frequency filter — shows All frequencies, Dispatch only, or Daily only
- Source Type filter — filters by the source object type of conditions
- Property filter — filters by the condition property
- Show unavailable sets — includes sets whose source objects are not available in the current SysWESM DB
- A count display shows how many sets are visible after filtering (for example, "3 of 12 sets")
A Reload sets link reloads the library from disk without leaving the sub-tab.
Conditions Table
The main area shows a full-width table of all condition sets. All sets are always expanded — there are no collapse toggles. Each row in a set is an inline-editable condition with the following fields:
- Source Type — the type of source object (for example, Supply Unit, Site, Region)
- Source Object — the identifier of the source object
- Property — the market quantity monitored by this condition (for example, Price, MwGen, Demand, %Gen/Max)
- Min — the minimum value of the condition range (defaults to 0 when a new condition row is added)
- Max — the maximum value of the condition range (defaults to 100 when a new condition row is added)
- Shape — the fuzzy membership shape of the condition: Rectangular, Triangular, Increasing, or Decreasing
- Negate — when ticked, the condition is inverted — it is true when it would otherwise be false.
- Time Period — the time period during which the condition is active; DEFAULT applies every day
Unsaved Changes
If you switch the library database or switch back to the Actions sub-tab while there are unsaved library changes, a dialog appears:
Unsaved Library Changes — "You have unsaved library changes. What would you like to do?"
- Save & Switch (or Save & Reload) — saves changes then continues
- Discard — discards changes then continues
- Cancel — returns to the Conditions Library without switching
Confirm Dialogs
Two confirmation dialogs protect against accidental deletions:
- Delete Condition Set — shown before deleting a set; if open actions reference the set, they are listed. Buttons: Delete / Cancel.
- Delete Condition — shown before deleting a condition row. Buttons: Delete / Cancel.